"use strict";

var router = require("router"),
    TokenService = require("router").TokenService,
    mongo = require('../core/mongoservice'),
    Q = require('q');

function RouteService() {
    console.log("RouteService constructor");
}
RouteService.prototype = Object.create(TokenService.prototype);
RouteService.prototype.constructor = RouteService;

RouteService.prototype.index = function (request, response, promise) {
    console.log("******** INDEX ********");
    return promise.then(function (self) {
        request.url = "/guess/guess.html";
        return router.assets.invoke(request, response);
    });
};

exports = module.exports = new RouteService();